home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mint112s.zoo / proto.h < prev    next >
Encoding:
Text File  |  1994-11-14  |  17.9 KB  |  426 lines

  1. /* bios.c */
  2. unsigned ionwrite P_((IOREC_T *wrec));
  3. unsigned ionread P_((IOREC_T *irec));
  4. unsigned btty_ionread P_((struct bios_tty *b));
  5. void checkbtty_nsig P_((struct bios_tty *b));
  6. void checkbttys P_((void));
  7. void checkbttys_vbl P_((void));
  8. long ARGS_ON_STACK getmpb P_((void *ptr));
  9. long bconstat P_((int dev));
  10. long bconin P_((int dev));
  11. long bconout P_((int dev, int c));
  12. long ARGS_ON_STACK ubconstat P_((int dev));
  13. long ARGS_ON_STACK ubconin P_((int dev));
  14. long ARGS_ON_STACK ubconout P_((int dev, int c));
  15. long ARGS_ON_STACK rwabs P_((int rwflag, void *buffer, int number, int recno, int dev, long lrecno));
  16. long ARGS_ON_STACK setexc P_((int number, long vector));
  17. long ARGS_ON_STACK tickcal P_((void));
  18. long ARGS_ON_STACK getbpb P_((int dev));
  19. long bcostat P_((int dev));
  20. long ARGS_ON_STACK ubcostat P_((int dev));
  21. long ARGS_ON_STACK mediach P_((int dev));
  22. long ARGS_ON_STACK drvmap P_((void));
  23. long ARGS_ON_STACK kbshift P_((int mode));
  24. long ARGS_ON_STACK bflush P_((void));
  25. void init_bios P_((void));
  26. long ARGS_ON_STACK do_bconin P_((int dev));
  27. int checkkeys P_((void));
  28. void init_vectors P_((void));
  29. void unlink_vectors  P_((long start, long end));
  30.  
  31. /* xbios.c */
  32. long ARGS_ON_STACK supexec P_((Func funcptr, long a1, long a2, long a3, long a4, long a5));
  33. long ARGS_ON_STACK midiws P_((int, const char *));
  34. int mapin P_((int));
  35. long ARGS_ON_STACK uiorec P_((int));
  36. long ARGS_ON_STACK rsconf P_((int, int, int, int, int, int));
  37. long ARGS_ON_STACK bconmap P_((int));
  38. long ARGS_ON_STACK cursconf P_((int, int));
  39. long ARGS_ON_STACK dosound P_((const char *ptr));
  40. void init_xbios P_((void));
  41.  
  42. /* console.c */
  43. long file_instat P_((FILEPTR *f));
  44. long file_outstat P_((FILEPTR *f));
  45. long file_getchar P_((FILEPTR *f, int mode));
  46. long file_putchar P_((FILEPTR *f, long c, int mode));
  47. long ARGS_ON_STACK c_conin P_((void));
  48. long ARGS_ON_STACK c_conout P_((int c));
  49. long ARGS_ON_STACK c_auxin P_((void));
  50. long ARGS_ON_STACK c_auxout P_((int c));
  51. long ARGS_ON_STACK c_prnout P_((int c));
  52. long ARGS_ON_STACK c_rawio P_((int c));
  53. long ARGS_ON_STACK c_rawcin P_((void));
  54. long ARGS_ON_STACK c_necin P_((void));
  55. long ARGS_ON_STACK c_conws P_((const char *str));
  56. long ARGS_ON_STACK c_conrs P_((char *buf));
  57. long ARGS_ON_STACK c_conis P_((void));
  58. long ARGS_ON_STACK c_conos P_((void));
  59. long ARGS_ON_STACK c_prnos P_((void));
  60. long ARGS_ON_STACK c_auxis P_((void));
  61. long ARGS_ON_STACK c_auxos P_((void));
  62. long ARGS_ON_STACK f_instat P_((int fh));
  63. long ARGS_ON_STACK f_outstat P_((int fh));
  64. long ARGS_ON_STACK f_getchar P_((int fh, int mode));
  65. long ARGS_ON_STACK f_putchar P_((int fh, long c, int mode));
  66.  
  67. /* dos.c */
  68. long ARGS_ON_STACK s_version P_((void));
  69. long ARGS_ON_STACK s_uper P_((long new_ssp));
  70. long ARGS_ON_STACK t_getdate P_((void));
  71. long ARGS_ON_STACK t_setdate P_((int date));
  72. long ARGS_ON_STACK t_gettime P_((void));
  73. long ARGS_ON_STACK t_settime P_((int time));
  74. long ARGS_ON_STACK s_yield P_((void));
  75. long ARGS_ON_STACK p_renice P_((int pid, int delta));
  76. long ARGS_ON_STACK p_nice P_((int delta));
  77. long ARGS_ON_STACK p_getpid P_((void));
  78. long ARGS_ON_STACK p_getppid P_((void));
  79. long ARGS_ON_STACK p_getpgrp P_((void));
  80. long ARGS_ON_STACK p_setpgrp P_((int pid, int newgrp));
  81. long ARGS_ON_STACK p_getuid P_((void));
  82. long ARGS_ON_STACK p_getgid P_((void));
  83. long ARGS_ON_STACK p_geteuid P_((void));
  84. long ARGS_ON_STACK p_getegid P_((void));
  85. long ARGS_ON_STACK p_setuid P_((int id));
  86. long ARGS_ON_STACK p_setgid P_((int id));
  87. long ARGS_ON_STACK p_seteuid P_((int id));
  88. long ARGS_ON_STACK p_setegid P_((int id));
  89. long ARGS_ON_STACK p_getauid P_((void));
  90. long ARGS_ON_STACK p_setauid P_((int id));
  91. long ARGS_ON_STACK p_getgroups P_((int gidsetlen, int gidset[]));
  92. long ARGS_ON_STACK p_setgroups P_((int ngroups, int gidset[]));
  93. long ARGS_ON_STACK p_usrval P_((long arg));
  94. long ARGS_ON_STACK p_umask P_((unsigned mode));
  95. long ARGS_ON_STACK p_domain P_((int arg));
  96. long ARGS_ON_STACK p_rusage P_((long *r));
  97. long ARGS_ON_STACK p_setlimit P_((int i, long v));
  98. long ARGS_ON_STACK p_pause P_((void));
  99. long ARGS_ON_STACK t_alarm P_((long x));
  100. long ARGS_ON_STACK t_malarm P_((long x));
  101. long ARGS_ON_STACK t_setitimer P_((int which, long *interval, long *value, long *ointerval, long *ovalue));
  102. long ARGS_ON_STACK s_ysconf P_((int which));
  103. long ARGS_ON_STACK s_alert P_((char *msg));
  104. long ARGS_ON_STACK s_uptime P_((unsigned long *cur_uptim, unsigned long loadave[3]));
  105. void init_dos P_((void));
  106.  
  107. /* dosdir.c */
  108. long ARGS_ON_STACK d_setdrv P_((int d));
  109. long ARGS_ON_STACK d_getdrv P_((void));
  110. long ARGS_ON_STACK d_free P_((long *buf, int d));
  111. long ARGS_ON_STACK d_create P_((const char *path));
  112. long ARGS_ON_STACK d_delete P_((const char *path));
  113. long ARGS_ON_STACK d_setpath P_((const char *path));
  114. long ARGS_ON_STACK d_getpath P_((char *path, int drv));
  115. long ARGS_ON_STACK d_getcwd P_((char *path, int drv, int size));
  116. long ARGS_ON_STACK f_setdta P_((DTABUF *dta));
  117. long ARGS_ON_STACK f_getdta P_((void));
  118. long ARGS_ON_STACK f_sfirst P_((const char *path, int attrib));
  119. long ARGS_ON_STACK f_snext P_((void));
  120. long ARGS_ON_STACK f_attrib P_((const char *name, int rwflag, int attr));
  121. long ARGS_ON_STACK f_delete P_((const char *name));
  122. long ARGS_ON_STACK f_rename P_((int junk, const char *old, const char *new));
  123. long ARGS_ON_STACK d_pathconf P_((const char *name, int which));
  124. long ARGS_ON_STACK d_opendir P_((const char *path, int flags));
  125. long ARGS_ON_STACK d_readdir P_((int len, long handle, char *buf));
  126. long ARGS_ON_STACK d_xreaddir P_((int len, long handle, char *buf, XATTR *xattr, long *xret));
  127. long ARGS_ON_STACK d_rewind P_((long handle));
  128. long ARGS_ON_STACK d_closedir P_((long handle));
  129. long ARGS_ON_STACK f_xattr P_((int flag, const char *name, XATTR *xattr));
  130. long ARGS_ON_STACK f_link P_((const char *old, const char *new));
  131. long ARGS_ON_STACK f_symlink P_((const char *old, const char *new));
  132. long ARGS_ON_STACK f_readlink P_((int buflen, char *buf, const char *linkfile));
  133. long ARGS_ON_STACK d_cntl P_((int cmd, const char *name, long arg));
  134. long ARGS_ON_STACK f_chown P_((const char *name, int uid, int gid));
  135. long ARGS_ON_STACK f_chmod P_((const char *name, unsigned mode));
  136. long ARGS_ON_STACK d_lock P_((int mode, int drv));
  137. long ARGS_ON_STACK d_readlabel P_((const char *path, char *label, int maxlen));
  138. long ARGS_ON_STACK d_writelabel P_((const char *path, const char *label));
  139.  
  140. /* dosfile.c */
  141. FILEPTR * do_open P_((const char *name, int mode, int attr, XATTR *x));
  142. long do_pclose P_((PROC *p, FILEPTR *f));
  143. long do_close P_((FILEPTR *f));
  144. long ARGS_ON_STACK f_open P_((const char *name, int mode));
  145. long ARGS_ON_STACK f_create P_((const char *name, int attrib));
  146. long ARGS_ON_STACK f_close P_((int fh));
  147. long ARGS_ON_STACK f_read P_((int fh, long count, char *buf));
  148. long ARGS_ON_STACK f_write P_((int fh, long count, const char *buf));
  149. long ARGS_ON_STACK f_seek P_((long place, int fh, int how));
  150. long ARGS_ON_STACK f_dup P_((int fh));
  151. long ARGS_ON_STACK f_force P_((int newh, int oldh));
  152. long ARGS_ON_STACK f_datime P_((short *timeptr, int fh, int rwflag));
  153. long ARGS_ON_STACK f_lock P_((int fh, int mode, long start, long length));
  154. long ARGS_ON_STACK f_pipe P_((short *usrh));
  155. long ARGS_ON_STACK f_cntl P_((int fh, long arg, int cmd));
  156. long ARGS_ON_STACK f_select P_((unsigned timeout, long *rfdp, long *wfdp, long *xfdp));
  157. long ARGS_ON_STACK f_midipipe P_((int pid, int in, int out));
  158.  
  159. /* dosmem.c */
  160. long ARGS_ON_STACK m_addalt P_((long start, long size));
  161. long _do_malloc P_((MMAP map, long size, int mode));
  162. long ARGS_ON_STACK m_xalloc P_((long size, int mode));
  163. long ARGS_ON_STACK m_alloc P_((long size));
  164. long ARGS_ON_STACK m_free P_((virtaddr block));
  165. long ARGS_ON_STACK m_shrink P_((int dummy, virtaddr block, long size));
  166. long ARGS_ON_STACK p_exec P_((int mode, void *ptr1, void *ptr2, void *ptr3));
  167. long terminate P_((int code, int que));
  168. long ARGS_ON_STACK p_term P_((int code));
  169. long ARGS_ON_STACK p_term0 P_((void));
  170. long ARGS_ON_STACK p_termres P_((long save, int code));
  171. long ARGS_ON_STACK p_waitpid P_((int pid, int nohang, long *rusage));
  172. long ARGS_ON_STACK p_wait3 P_((int nohang, long *rusage));
  173. long ARGS_ON_STACK p_wait P_((void));
  174. void fork_restore P_((PROC *p, MEMREGION *savemem));
  175. long ARGS_ON_STACK p_vfork P_((void));
  176. long ARGS_ON_STACK p_fork P_((void));
  177. long ARGS_ON_STACK p_sigintr P_((int vec, int sig));
  178. void cancelsigintrs P_((void));
  179.  
  180. /* dossig.c */
  181. long ARGS_ON_STACK p_kill P_((int pid, int sig));
  182. long ARGS_ON_STACK p_sigaction P_((int sig, const struct sigaction *act,
  183.              struct sigaction *oact));
  184. long ARGS_ON_STACK p_signal P_((int sig, long handler));
  185. long ARGS_ON_STACK p_sigblock P_((ulong mask));
  186. long ARGS_ON_STACK p_sigsetmask P_((ulong mask));
  187. long ARGS_ON_STACK p_sigpending P_((void));
  188. long ARGS_ON_STACK p_sigpause P_((ulong mask));
  189.  
  190. /* filesys.c */
  191. void init_drive P_((int drv));
  192. void init_filesys P_((void));
  193. void load_filesys P_((void));
  194. void load_devdriver P_((void));
  195. void close_filesys P_((void));
  196. void ARGS_ON_STACK changedrv P_((unsigned drv));
  197. int disk_changed P_((int drv));
  198. long relpath2cookie
  199.     P_((fcookie *dir, const char *path, char *lastnm, fcookie *res, int depth));
  200. long path2cookie P_((const char *path, char *lastname, fcookie *res));
  201. void release_cookie P_((fcookie *fc));
  202. void dup_cookie P_((fcookie *new, fcookie *old));
  203. FILEPTR *new_fileptr P_((void));
  204. void dispose_fileptr P_((FILEPTR *f));
  205. int ARGS_ON_STACK denyshare P_((FILEPTR *list, FILEPTR *newfileptr));
  206. int ngroupmatch P_((int group));
  207. int denyaccess P_((XATTR *, unsigned));
  208. LOCK * ARGS_ON_STACK denylock P_((LOCK *list, LOCK *newlock));
  209. long dir_access P_((fcookie *, unsigned));
  210. int has_wild P_((const char *name));
  211. void copy8_3 P_((char *dest, const char *src));
  212. int pat_match P_((const char *name, const char *template));
  213. int samefile P_((fcookie *, fcookie *));
  214.  
  215. /* main.c */
  216. void restr_intr P_((void));
  217. void ARGS_ON_STACK enter_kernel P_((int));
  218. void ARGS_ON_STACK leave_kernel P_((void));
  219. #if defined(__GNUC__) || defined (__MINT__)
  220. int main P_((int argc, char **argv, char **envp));
  221. #else
  222. int main P_((int argc, char **argv));
  223. #endif
  224. void install_cookies P_((void));
  225. void load_config P_((void));
  226.  
  227. /* mem.c */
  228. void init_mem P_((void));
  229. void restr_screen P_((void));
  230. int add_region P_((MMAP map, ulong place, ulong size, unsigned mflags));
  231. void init_core P_((void));
  232. void init_swap P_((void));
  233. MEMREGION *new_region P_((void));
  234. void dispose_region P_((MEMREGION *m));
  235. long change_prot_status P_((PROC *proc, long start, int newmode));
  236. virtaddr attach_region P_((PROC *proc, MEMREGION *reg));
  237. void detach_region P_((PROC *proc, MEMREGION *reg));
  238. MEMREGION *get_region P_((MMAP map, ulong size, int mode));
  239. void free_region P_((MEMREGION *reg));
  240. long shrink_region P_((MEMREGION *reg, ulong newsize));
  241. long max_rsize P_((MMAP map, long needed));
  242. long tot_rsize P_((MMAP map, int flag));
  243. virtaddr alloc_region P_((MMAP map, ulong size, int mode));
  244. MEMREGION *create_env P_((const char *env, ulong flags));
  245. MEMREGION *create_base P_((const char *cmd, MEMREGION *env, ulong flags, ulong prgsize,
  246.             PROC *execproc, SHTEXT *s, FILEPTR *f, FILEHEAD *fh, XATTR *xp));
  247. MEMREGION *load_region P_((const char *name, MEMREGION *env, const char *cmdlin, XATTR *x,
  248.             MEMREGION **text, long *fp, int isexec));
  249. SHTEXT *get_text_seg P_((FILEPTR *f, FILEHEAD *fh, XATTR *xp, SHTEXT *s, int noalloc));
  250. MEMREGION *find_text_seg P_((FILEPTR *f));
  251. long load_and_reloc P_((FILEPTR *f, FILEHEAD *fh, char *where, long start,
  252.             long nbytes, BASEPAGE *base));
  253. void rts P_((void));
  254. PROC *exec_region P_((PROC *p, MEMREGION *mem, int thread));
  255. long memused P_((PROC *p));
  256. void recalc_maxmem P_((PROC *p));
  257. int valid_address P_((long addr));
  258. MEMREGION *addr2region P_((long addr));
  259. void DUMP_ALL_MEM P_((void));
  260. void DUMPMEM P_((MMAP map));
  261. void sanity_check P_((MMAP map));
  262.  
  263. /* proc.c */
  264. PROC *new_proc P_((void));
  265. void dispose_proc P_((PROC *p));
  266. PROC *fork_proc P_((void));
  267. void init_proc P_((void));
  268. void reset_priorities P_((void));
  269. void run_next P_((PROC *p, int slices));
  270. void fresh_slices P_((int slices));
  271. void add_q P_((int que, PROC *proc));
  272. void rm_q P_((int que, PROC *proc));
  273. void ARGS_ON_STACK preempt P_((void));
  274. int ARGS_ON_STACK sleep P_((int que, long cond));
  275. void ARGS_ON_STACK wake P_((int que, long cond));
  276. void ARGS_ON_STACK iwake P_((int que, long cond, short pid));
  277. void ARGS_ON_STACK wakeselect P_((long param));
  278. void DUMPPROC P_((void));
  279. void calc_load_average P_((void));
  280. unsigned long gen_average P_((unsigned long *sum, unsigned char *load_ptr, int max_size));
  281.  
  282. /* signal.c */
  283. long killgroup P_((int pgrp, int sig, int priv));
  284. void post_sig P_((PROC *p, int sig));
  285. long ARGS_ON_STACK ikill P_((int p, int sig));
  286. void check_sigs P_((void));
  287. void raise P_((int sig));
  288. void bombs P_((int sig));
  289. void handle_sig P_((int sig));
  290. long ARGS_ON_STACK p_sigreturn P_((void));
  291. void stop P_((int sig));
  292. void exception P_((int sig));
  293. void sigbus P_((void));
  294. void sigaddr P_((void));
  295. void sigill P_((void));
  296. void sigpriv P_((void));
  297. void sigfpe P_((void));
  298. void sigtrap P_((void));
  299. void haltformat P_((void));
  300. void haltcpv P_((void));
  301.  
  302. /* timeout.c */
  303. TIMEOUT * ARGS_ON_STACK addtimeout P_((long delta, void (*func)(PROC *p)));
  304. TIMEOUT * ARGS_ON_STACK addroottimeout P_((long delta, void (*func)(PROC *p), short flags));
  305. void ARGS_ON_STACK cancelalltimeouts P_((void));
  306. void ARGS_ON_STACK canceltimeout P_((TIMEOUT *which));
  307. void ARGS_ON_STACK cancelroottimeout P_((TIMEOUT *which));
  308. void ARGS_ON_STACK timeout P_((void));
  309. void checkalarms P_((void));
  310. void ARGS_ON_STACK nap P_((unsigned n));
  311.  
  312. /* tty.c */
  313. void tty_checkttou P_((FILEPTR *f, struct tty *tty));
  314. long tty_read P_((FILEPTR *f, void *buf, long nbytes));
  315. long tty_write P_((FILEPTR *f, const void *buf, long nbytes));
  316. long tty_ioctl P_((FILEPTR *f, int mode, void *arg));
  317. long tty_getchar P_((FILEPTR *f, int mode));
  318. long tty_putchar P_((FILEPTR *f, long data, int mode));
  319. long tty_select P_((FILEPTR *f, long proc, int mode));
  320.  
  321. /* util.c */
  322. MEMREGION *addr2mem P_((virtaddr a));
  323. PROC *pid2proc P_((int pid));
  324. int newpid P_((void));
  325. void zero P_((char *place, long size));
  326. void * ARGS_ON_STACK kmalloc P_((long size));
  327. void *kcore P_((long size));
  328. void ARGS_ON_STACK kfree P_((void *place));
  329. void * ARGS_ON_STACK umalloc P_((long size));
  330. void ARGS_ON_STACK ufree P_((void *block));
  331. void ARGS_ON_STACK ms_time P_((ulong ms, short *timeptr));
  332. long ARGS_ON_STACK unixtim P_((unsigned time, unsigned date));
  333. long ARGS_ON_STACK dostim P_((long t));
  334. int ARGS_ON_STACK strnicmp P_((const char *str1, const char *str2, int len));
  335. int ARGS_ON_STACK stricmp P_((const char *str1, const char *str2));
  336. char * ARGS_ON_STACK strlwr P_((char *s));
  337. char * ARGS_ON_STACK strupr P_((char *s));
  338.  
  339. #ifdef OWN_LIB
  340. int strncmp P_((const char *str1, const char *str2, int len));
  341. int strcmp P_((const char *str1, const char *str2));
  342. char *strcat P_((char *, const char *));
  343. char *strcpy P_((char *, const char *));
  344. char *strncpy P_((char *, const char *, int));
  345. int strlen P_((const char *));
  346. char *strrchr P_((const char *, int));
  347. int toupper P_((int));
  348. int tolower P_((int));
  349. long atol P_((const char *));
  350. #endif /* OWN_LIB */
  351.  
  352. /* biosfs.c */
  353. long rsvf_ioctl P_((int f, void *arg, int mode));
  354. void biosfs_init P_((void));
  355. long iwrite    P_((int bdev, const char *buf, long bytes, int ndelay, struct bios_file *b));
  356. long iread    P_((int bdev, char *buf, long bytes, int ndelay, struct bios_file *b));
  357. long iocsbrk    P_((int bdev, int mode, struct bios_tty *t));
  358. void ARGS_ON_STACK mouse_handler P_((const char *buf));
  359. long ARGS_ON_STACK nocreat P_((fcookie *dir, const char *name, unsigned mode, int attrib,
  360.          fcookie *fc));
  361. long ARGS_ON_STACK nomkdir    P_((fcookie *dir, const char *name, unsigned mode));
  362. long ARGS_ON_STACK nowritelabel P_((fcookie *dir, const char *name));
  363. long ARGS_ON_STACK noreadlabel P_((fcookie *dir, char *name, int namelen));
  364. long ARGS_ON_STACK nosymlink P_((fcookie *dir, const char *name, const char *to));
  365. long ARGS_ON_STACK noreadlink P_((fcookie *dir, char *buf, int buflen));
  366. long ARGS_ON_STACK nohardlink P_((fcookie *, const char *, fcookie *, const char *));
  367. long ARGS_ON_STACK nofscntl P_((fcookie *dir, const char *name, int cmd, long arg));
  368. long ARGS_ON_STACK nodskchng P_((int drv));
  369. int set_auxhandle P_((PROC *, int));
  370.  
  371. /* pipefs.c */
  372.  
  373. /* procfs.c */
  374.  
  375. /* tosfs.c */
  376.  
  377. /* unifs.c */
  378. FILESYS *get_filesys P_((int));
  379. void unifs_init P_((void));
  380.  
  381. /* debug.c */
  382. int ARGS_ON_STACK ksprintf P_((char *, const char *, ...));
  383. void debug_ws P_((const char *s));
  384. int _ALERT P_((char *));
  385. void ARGS_ON_STACK Tracelow P_((const char *s, ...));
  386. void ARGS_ON_STACK Trace P_((const char *s, ...));
  387. void ARGS_ON_STACK Debug P_((const char *s, ...));
  388. void ARGS_ON_STACK ALERT P_((const char *s, ...));
  389. void ARGS_ON_STACK FORCE P_((const char *s, ...));
  390. void PAUSE P_((void));
  391. EXITING void ARGS_ON_STACK FATAL P_((const char *s, ...)) NORETURN;
  392. EXITING void HALT P_((void)) NORETURN;
  393. void DUMPLOG P_((void));
  394. void do_func_key P_((int));
  395.  
  396. /* rendez.c */
  397. long ARGS_ON_STACK p_msg P_((int mode, long ARGS_ON_STACK mbid, char *ptr));
  398. long ARGS_ON_STACK p_semaphore P_((int mode, long ARGS_ON_STACK id, long timeout));
  399. void free_semaphores P_((int pid));
  400.  
  401. /* memprot.c */
  402. void init_tables P_((void));
  403. int get_prot_mode P_((MEMREGION *));
  404. void mark_region P_((MEMREGION *region, int mode));
  405. void mark_proc_region P_((PROC *proc, MEMREGION *region, int mode));
  406. int prot_temp P_((ulong loc, ulong len, int mode));
  407. void init_page_table P_((PROC *proc));
  408. void mem_prot_special P_((PROC *proc));
  409. void QUICKDUMP P_((void));
  410. void report_buserr P_((void));
  411. void BIG_MEM_DUMP P_((int bigone, PROC *proc));
  412. int mem_access_for P_((PROC *p, ulong where, long len));
  413.  
  414. /* nalloc2.c */
  415. void nalloc_arena_add P_((void *start, long len));
  416. void *nalloc P_((long size));
  417. void nfree P_((void *start));
  418. void NALLOC_DUMP P_((void));
  419.  
  420. /* realloc.c */
  421. long realloc_region P_((MEMREGION *, long));
  422. long ARGS_ON_STACK s_realloc P_((long));
  423.  
  424. /* welcome.c */
  425. int boot_kernel_p P_((void));
  426.